import request from '@/utils/request'

// 查询办公用品申领列表
export function listOfficeClaim(query) {
  return request({
    url: '/office/officeClaim/list',
    method: 'get',
    params: query
  })
}

// 查询办公用品申领详细
export function getOfficeClaim(id) {
  return request({
    url: '/office/officeClaim/' + id,
    method: 'get'
  })
}

// 新增办公用品申领
export function addOfficeClaim(data) {
  return request({
    url: '/office/officeClaim',
    method: 'post',
    data: data
  })
}

// 修改办公用品申领
export function updateOfficeClaim(data) {
  return request({
    url: '/office/officeClaim',
    method: 'put',
    data: data
  })
}

// 删除办公用品申领
export function delOfficeClaim(id) {
  return request({
    url: '/office/officeClaim/' + id,
    method: 'delete'
  })
}
